Skip to content

Migrate to schema and column editor API#12488

Open
greg0ire wants to merge 1 commit into
doctrine:3.6.xfrom
greg0ire:schema-editor
Open

Migrate to schema and column editor API#12488
greg0ire wants to merge 1 commit into
doctrine:3.6.xfrom
greg0ire:schema-editor

Conversation

@greg0ire
Copy link
Copy Markdown
Member

These are the minimal changes needed to make the build green. My plan is to rebase #12357 on this (and probably retarget to 3.6.x as well, since it is about addressing deprecations, although for some reason there aren't any).

@greg0ire greg0ire force-pushed the schema-editor branch 4 times, most recently from 9ca3ec4 to 53d56ad Compare May 26, 2026 19:23
@beberlei
Copy link
Copy Markdown
Member

@greg0ire @morozov can we learn from migrating this to make sure the new API is usable for ORM? it looks hard for users.

@morozov
Copy link
Copy Markdown
Member

morozov commented May 26, 2026

@beberlei could you be more specific? This PR represents the changes in the ORM internals, the new DBAL API is for the DBAL consumers (e.g. the ORM) — how does it reflect whether it's hard or not for the ORM users? FWIW, most of the new tests in the DBAL have been written using the new API and I haven't heard any complaints about the API being hard to use.

@greg0ire greg0ire force-pushed the schema-editor branch 4 times, most recently from 5c2c764 to 6eebd12 Compare May 27, 2026 06:26
@greg0ire
Copy link
Copy Markdown
Member Author

greg0ire commented May 27, 2026

@beberlei right now, I've focused on fixing the deprecations reported in the test suite, so the code is not fully migrated to the editor APIs. Moreover, I have to keep the code backward compatible with DBAL versions where this API do not exist.

I think whether the API is easy to use or not will be easier to judge once the migration is complete, and the BC code is cleaned up (so, on 4.0.x, after a merge up).

Granted, the new API is less convenient to use, but it's a tradeoff and the benefits outlined in doctrine/dbal#6660 look IMO worth the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants